package com.zdw.demo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * CustomerDto对象
 * </p>
 *
 * @author 卓德文
 * @since 2023-04-05
 */
@Getter
@Setter
public class CustomerAddDto implements Serializable {

    @ApiModelProperty("主键ID")
    @NotNull(message = "请选择客户信息")
    private Integer id;

    @ApiModelProperty("客户状态(0:启用;1:禁用)")
    @NotNull(message = "请选择客户状态")
    private Integer state;

    @ApiModelProperty("客户名称")
    @NotBlank(message = "客户名称不能为空")
    private String name;

}
